package com.xue.utils;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xue
 * @ClassName: JsonUtils
 * @Date: Created in 1:50 2021/10/29
 * @Description:
 */


public class JsonUtils {


    public static Map<String, Object> jsonToMap(String json){
        return JSON.parseObject(json, Map.class);
    }

    public static String mapToJson(Map<String, Object> map){
        return JSON.toJSONString(map);
    }


}
